begintalkscript;

variables;

 
begintalknode 1;
 state = -1;
 nextstate = -1;
 question = "Miner";
 text1 = "The miner tells you to talk to Judeth, who is over by the rocks.";
 
begintalknode 2;
 state = -1;
 nextstate = 1;
 question = "Judeth";
 text1 = "This miner is apparently trapped like the others. She turns towards you. _Hey! Help me dig out!_";
 
begintalknode 3;
 state = 1;
 nextstate = 2;
 question = "What happened?";
 text1 = "As you help her dig, she talks. _Well, we were busy digging for crystals when this dumbass causes the tunnel to collapse! He was killed in the accident._";
 text2 = "_We've been trapped here for a while. We don't know how long. We have ran out of food, I'm the only one who has the strength to dig now._";
 
begintalknode 4;
 state = 1;
 nextstate = -1;
 condition = (get_flag(1,11) == 0);
 question = "Do you think you will get out?";
 
text1 = "She sighs, and sits down. _I don't think so, I think I will just..._ She is interrupted. Light pours in from a small part at the top of the mess.";
 
text2 = "Judeth shouts through it. _In here! We're in here!_ In a few minutes, the mess is finally cleared. The people who helped to clear it from the other side rush to the other miners to help them.";
 
text3 = "Pretty soon, you are alone.";
 code = set_terrain(17,22,138);
 
set_terrain(16,22,131);
 
set_flag(1,11,1);
 
erase_char(6);
 
erase_char(7);
 
erase_char(8);
 
erase_char(9);
 
erase_char(10);
 
erase_char(11);
 
erase_char(13);
 break;
 